
<?php
use common\service\StaticService;
use shopend\assets\ShopAsset;
use common\service\GlobalUrlService;
use common\service\CommonService;
$this->title = '投诉详情';
StaticService::includeAppJsStatic(GlobalUrlService::buildShopStaticUrl('/backend/complaint/info.js'),ShopAsset::class);
?>

<div class="layui-card">
    <div class="layui-card-header">申请信息</div>
    <div class="layui-card-body">
        <div class="complaint_info">
            <ul>
                <li>
                    <span class="layui-inline">售后类型</span>
                    <span class="layui-inline"><?= $row['sale_type']?></span>
                </li>
                <li>
                    <span class="layui-inline">货物状态</span>
                    <span class="layui-inline"><?= $row['goods_type']?></span>
                </li>
                <li>
                    <span class="layui-inline">申请原因</span>
                    <span class="layui-inline"><?= $row['reason']?></span>
                </li>
                <li>
                    <span class="layui-inline">问题描述</span>
                    <span class="layui-inline"><?= $row['problem_description'] ?></span>
                </li>
                <li>
                    <span class="layui-inline">审核备注</span>
                    <span class="layui-inline"><?= $row['dismissal'] ?></span>
                </li>
                <li>
                    <span class="layui-inline">处理结果</span>
                    <span class="layui-inline"><?= $row['result'] ?></span>
                </li>
                <li>
                    <span class="layui-inline">处理人</span>
                    <span class="layui-inline"><?= $row['admin_name']?></span>
                </li>
                <li>
                    <span class="layui-inline">联系电话</span>
                    <span class="layui-inline"><?=$row['user_phone']?></span>
                </li>
                <li>
                    <span class="layui-inline">图片</span>
                    <span class="layui-inline">
                      <img src="">
                  </span>
              </li>
            </ul>
        </div>
        <div class="btns">
        <!-- <button class="layui-btn update-complete">通过<i class="layui-icon">&#xe605;</i></button>
          <button class="layui-btn">未通过<i class="layui-icon">&#x1006;</i></button> -->
          <?php if($row['status'] == 0 ):?>
            <a class="layui-btn short-green agree" status='1' id="<?= $row['id']?>" >通过<i class="layui-icon">&#xe605;</i></a>
            <a class="layui-btn btn-grey disagree" status='3' id="<?= $row['id']?>" >未通过<i class="layui-icon">&#x1006;</i></a>
        <?php endif;?>
        <?php if($row['status']==1) :?>
            <a type="button" class="layui-btn short-blue btn-last-confirm update-complete" dataid="<?=$row['id']?>">完成<i class="icon-ok"></i></a>
        <?php endif ;?>
        <a class="layui-btn layui-btn-primary" href="<?= GlobalUrlService::buildShopUrl('complaint/index')?>">返回</a>
        </div>
    </div>
</div>

<style type="text/css">
.complaint_info ul{ padding: 0 0 10px 0; }
.complaint_info li{ padding: 10px 0; font-size: 16px; color: #999; }
.complaint_info li span:first-child{ text-align:justify; text-justify:inter-word;text-justify:inter-ideograph; width: 100px; color: #333;  }
.complaint_info li img{ width: 150px; height: 150px; margin-right: 10px; }
.btns{ text-align: center; }
.btns .layui-btn{ width: 100px; margin:  20px 10px; }
</style>